function* app() {
    yield 1;
    yield 2;
    yield 3;
    return 4;
}

const a = app();
console.log(a.next())
console.log(a.next())
console.log(a.next())
console.log(a.next())
console.log(a.next())
// 步进器